package com.water.wfo.sys.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统日志表
 * </p>
 *
 * @author water&7
 * @since 2024-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Syslog对象", description="系统日志表")
public class SyslogEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "登录名")
    @TableField("LOGIN_ID")
    private String loginId;

    @ApiModelProperty(value = "用户名")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "登录代码")
    @TableField("ORG_ID")
    private String orgId;

    @ApiModelProperty(value = "发生时间")
    @TableField("HAPPEND_DATE")
    private Date happendDate;

    @ApiModelProperty(value = "IP地址")
    @TableField("IP_ADDRESS")
    private String ipAddress;

    @ApiModelProperty(value = "事件")
    @TableField("EVENT")
    private String event;

    @ApiModelProperty(value = "业务KEY")
    @TableField("BIZ_KEY")
    private String bizKey;

    @ApiModelProperty(value = "操作描述")
    @TableField("REMARK")
    private String remark;
    @ApiModelProperty(value = "有效")
    private String active;
}
